//
//  QTAnnotation.m
//  QTLifeCircle
//
//  Created by 王琼 on 17/1/18.
//  Copyright © 2017年 徐腾. All rights reserved.
//

#import "QTAnnotation.h"

@implementation QTAnnotation

- (NSString *)title{
    return @"定点位置!";
}

#pragma  mark 标点上的副标题


- (NSString *)subtitle{
    
    
    NSMutableString *ret = [NSMutableString new];
    
    if (_state) {
        
        [ret appendString:_state];
    }
    
    if (_city) {
        
        [ret appendString:_city];
        
    }
    
    if (_city && _state) {
        
        [ret appendString:@", "];
    }
    
    if (_streetAddress && (_city || _state || _zip)) {
        
        [ret appendString:@" · "];
    }
    
    if (_streetAddress) {
        
        [ret appendString:_streetAddress];
    }
    
    if (_zip) {
        
        [ret appendFormat:@",  %@",_zip];
    }
    return ret;
}
@end
